irqchip: irq-bcm2836: Remove regmap and syscon use
authorPhil Elwell <phil@raspberrypi.org>
Tue, 23 Jan 2018 16:52:45 +0000 (16:52 +0000)
committerPhil Elwell <phil@raspberrypi.org>
Tue, 23 Jan 2018 17:11:20 +0000 (17:11 +0000)
commit5cd7cd7d90d65d2bb5f7656d46ff039a192d1529
treed048182f9caae171dba31d8f1dd524671b6b76dc
parentc7b6645458053c75009559e66bd5e3034e82969f
irqchip: irq-bcm2836: Remove regmap and syscon use

The syscon node defines a register range that duplicates that used by
the local_intc node on bcm2836/7. Since irq-bcm2835 and irq-bcm2836 are
built in and always present together (both drivers are enabled by
CONFIG_ARCH_BCM2835), it is possible to replace the syscon usage with a
global variable that simplifies the code. Doing so does lose the
locking provided by regmap, but as only one side is using the regmap
interface (irq-bcm2835 uses readl and write) there is no loss of
atomicity.

See: https://github.com/raspberrypi/firmware/issues/926

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
arch/arm/boot/dts/bcm2709.dtsi
arch/arm/boot/dts/bcm2710.dtsi
drivers/irqchip/irq-bcm2835.c
drivers/irqchip/irq-bcm2836.c